{% extends 'demo/base.html' %}
{% load static %}
{% block link %}
    <link rel="stylesheet" href=" {% static 'css/demo/article_detail.css' %} ">
{% endblock %}
{% block title %}
    {{ article.title }}
{% endblock %}
{% block header %}
    {% include 'demo/header.html' %}
{% endblock %}
{% block main %}
    <div class="content">
        <div class="left-box">用户信息
            <div class="tags">
                <span class="tag">作者{{ article.user.username }}</span>
                <span class="tag">发布时间：{{ article.create_time|timesince }}</span>
            </div>

        </div>

        <div class="right-box">
            <div class="tags">
                <span>分类专栏</span>
                <span class="tag">{{ article.classes }}</span>
                {% if labels %}
                    <span>文章标签：</span>
                    {% for i in labels %}
                        <span class="tag">
                            {{ i.name }}
                        </span>
                    {% endfor %}
                {% endif %}
            </div>
            <div class="info">
                <h1>{{ article.title }}</h1>
            </div>
            <div class="article">
                {{ article.content }}
            </div>
        </div>
    </div>
{% endblock %}